home *** CD-ROM | disk | FTP | other *** search
- DOMENUT -- Version 1.3 (note, this program replaces both DOMENUT
- and DOMENU).
-
- READ.ME This file
- SHOWM.BAT A sample batch file
- SHOWM.MNU A sample menu
- DOMENUT.EXE The program
- SHOWDO1.BAT A sample batch file with some options set
- SHOWM.MNU The menu for SHOWM.BAT
-
- DOMENUT is a menuing system for batch files. It opens a
- menu as a window, accepts the menu entry, and returns an
- errorlevel for batch to take action on. To try it out, run the
- batch file SHOWM. It uses DOMENUT with the menu "SHOWM.MNU".
-
- Menu files may be any text file of up to 14 lines. Each
- line is limited to 60 characters. There is no need to justify
- or center, DOMENUT will count both lines and characters per
- line, then arrange everything neatly.
-
- NOTE: THE BATCH "IF ERRORLEVEL" STATEMENT IS REALLY A "IF
- ERRORLEVEL > n" COMMAND. THIS MAKES IT NECCESSARY TO TEST
- ERROR LEVELS FROM HIGHEST TO LOWEST. THE SAMPLE BATCH FILE
- SHOWS THIS.
-
- Several "special" lines can be put into the menu file to
- modify DOMENUT actions. These command lines to DOMENUT are
- recognized by the fact that they start with a period, and a
- command letter.
-
- For example, any line starting with ".R" is considered to be
- a remark, and is ignored.
-
- SPECIAL COMMANDS:
-
- .F n
- The ".F" command sets the foreground colour to colour n.
- The colours are n=0=black, n=1=blue, n=2=green, n=3=cyan,
- n=4=red, n=5=magenta, n=6=brown, n=7=white. Programmers
- familiar with colour programs will recognize the numbers; if you
- do, the arguement is made mod 16 and used as the screen
- attribute. So you can get blink, underline, etc., depending on
- your screen type.
-
- .B n
- As above but background colour. Background and foreground
- are a bit vaque with both of these commands, as half of the
- window is reverse video, and half is not. For the sake of
- arguement, the characters of the box outlining the window are
- considered foreground. Probably backwards to how most people
- think (including me), but that is the way the macro bounced.
-
- .S n
- Set timer for n seconds. When the timer times out, exit as
- if a return was entered. The main reason for this command is to
- give you an option for autoexec.bat files. You can set the
- timer for 15 seconds, for example, and make the first menu item
- your default power up. This gives you 15 seconds to select a
- different power up option. (note that ALL keystokes will reset
- the timer back to 15 seconds, so you do not have to make your
- mind up quickly, as long as you keep hitting keys). Very useful
- for stuff that runs unattended.
-
- Typically, I make the first menu item a power fail recovery,
- the second a fast startup that bypasses the recovery, and the
- third a DOS exit.
-
- .T A sentence goes here
- The title command replaces my company name (Upscale Software
- Inc.) with your company name. That is so you can put menus on a
- customer's computer, and make it look like you wrote the menu
- program ... a courtesy to fellow programers. I will ask, as a
- return courtesy, that you not use this feature unless you do one
- of the following:
-
- 1. - Publish as "freeware" one or more of your own programs. I
- expect that program to be some usefull item ... trivial games by
- beginners do not count, as do not programs that are too flakey
- to use professionally. But little stuff does ... the type of
- thing that we all need, but is too small to be commercial.
-
- 2. - Make a small donation to your favourite charity and send me
- a note saying that you have done so.
-
- 3. - Run a public BBS.
-
- 4. - Send me a courtesy copy of any software that you publish,
- or have written, for my own use, not to be re-sold.
-
- If none of the above are true, please use the program for
- nothing, but leave the company name on the screen. I will
- consider the advertising as the shareware fee.
-
- Donald L. Tees Ex-Libris BBS
- Upscale Software Inc. Fido 1:221/192
- Windrush Farm
- RR 2, Wellesley, Ontario
- Canada
- N0B 2T0